package com.train.mapper;

import com.train.dto.CardDTO;
import com.train.pojo.Card;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CardMapper {
    List<CardDTO> selectAllCardDTO();
    CardDTO selectCardDTOByCardid(@Param("cardid")String cardid);
    Card selectCardByCardid(@Param("cardid")String cardid);
    Card selectCardByStr(String str);
    int addCard(Card card);
    int updateCard(Card card);
    int deleteCard(@Param("cardid")String cardid);
}
